<?php
	/**
	 * Exporting to text file
	 *
	 */
	class TextExport
	{
		/*
		 * file contents
		 */
		public $contents = '';
		
		/**
		 * adds a row
		 *
		 * @param string $string row
		 */
		function AddRow($string)
		{
			$this->contents .= $string."\r\n";
		}
		
		/**
		 * Creates the file
		 *
		 * @param string $path_to_file path to the file
		 */
		function CreateFile($path_to_file)
		{
	   		$fp = fopen($path_to_file, 'a+');
	   		fwrite($fp, $this->contents);
		   	fclose($fp);			
		}
	}
?>